from django.shortcuts import render
from .models import History

# Create your views here.


def history(request):
    """历史记录"""
    histories = History.objects.all().order_by('-time')
    return render(request, 'history.html', {'histories': histories})
